package com.he.decoratormodel.decorator.concreteclothes;

import com.he.decoratormodel.decorator.Decorator;
import com.he.decoratormodel.component.Component;

/**
 * 具体装饰类
 */
public class Jacket extends Decorator {


    public Jacket(Component component) {
        super(component);
    }

    @Override
    public void puton() {
        if (component != null) {
            System.out.print("夹克 ");
            super.puton();
        }
    }
}
